#ifndef __PACK_H__
#define __PACK_H__

#include "message.h"
#include <dirent.h>
#include <sys/types.h>

void get_filename(char* pathname,char* filename);
int Client_pack(unsigned char* send_cmd,char* arg,enum CMD_NO cmd);
int Server_pack(char* resp,char*filenames,enum CMD_NO cmd);
void ser_hand_ls(int confd,char* resp,enum CMD_NO cmd);
void ser_hand_get(int confd,char* resp,enum CMD_NO cmd,char* arg);
void ser_hand_put(int confd,char* resp,enum CMD_NO cmd,char* arg);
void ser_hand_cd(char* arg,char*nserdir,int confd);
void ser_hand_bye(int confd,char* resp,enum CMD_NO cmd,struct sockaddr_in client);
void ser_hand_unknown(int confd,char* resp,enum CMD_NO cmd);
void clie_hand_ls(int sockfd);
int clie_hand_get(int sockfd,char* pathname);
void clie_hand_put(int sockfd,char* pathname,enum CMD_NO cmd,unsigned char* send_cmd);
void clie_hand_cd(int sockfd);
void clie_hand_bye(int sockfd);
void clie_hand_unknown(int sockfd);
void Knag();
void clie_hand_pwd(int sockfd);
void ser_hand_pwd(int confd,char* resp,enum CMD_NO cmd);//服务器获取当前目录地址







#endif